package com.dhsc.local.dao.impl.yykh.slrkp;

import com.dhsc.domain.ywzx.yykh.XjgyLsVo;
import com.dhsc.domain.ywzx.yykh.XjgypdVo;
import com.dhsc.domain.ywzx.yykh.slrpd.SlrpdVo;
import com.dhsc.domain.ywzx.yykh.slrpd.SlrtssxVo;
import com.dhsc.local.dao.yykh.slrkp.ISlrkpDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 受理人考评
 * @date 2024/7/16 15:24
 */
@Repository("slrkpDao")
public class SlrkpDaoImpl implements ISlrkpDao {


    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<SlrpdVo> querySlrkpmxInfo(SlrpdVo s) {
        return localSqlSessionTemplate.selectList("SlrkpMapper.querySlrkpmxInfo",s);
    }

    @Override
    public List<XjgyLsVo> querySlrkpYwslLs(XjgypdVo xjgypdVo) {
        return localSqlSessionTemplate.selectList("SlrkpMapper.querySlrkpYwslLs",xjgypdVo);
    }

    @Override
    public List<XjgyLsVo> querySlrkpYwxlLs(XjgypdVo xjgypdVo) {
        return localSqlSessionTemplate.selectList("SlrkpMapper.querySlrkpYwxlLs",xjgypdVo);
    }

    @Override
    public List<XjgyLsVo> querySlrkpYwzlLs(XjgypdVo xjgypdVo) {
        return localSqlSessionTemplate.selectList("SlrkpMapper.querySlrkpYwzlLs",xjgypdVo);
    }

    @Override
    public List<XjgyLsVo> querySlrkpKhpjLs(XjgypdVo xjgypdVo) {
        return localSqlSessionTemplate.selectList("SlrkpMapper.querySlrkpKhpjLs",xjgypdVo);
    }

    @Override
    public List<SlrtssxVo> querySlrtssxInfo(SlrtssxVo s) {
        return localSqlSessionTemplate.selectList("SlrkpMapper.querySlrtssxInfo",s);
    }

    @Override
    public List<SlrtssxVo> queryGyxx(SlrtssxVo s) {
        return localSqlSessionTemplate.selectList("SlrkpMapper.queryGyxx",s);
    }

    @Override
    public int saveSlrtssx(SlrtssxVo s) {
        return localSqlSessionTemplate.insert("SlrkpMapper.saveSlrtssx",s);
    }

    @Override
    public int deleteSlrtssx(SlrtssxVo s) {
        return localSqlSessionTemplate.delete("SlrkpMapper.deleteSlrtssx",s);
    }

    @Override
    public List<XjgyLsVo> querySlrPxksLs(XjgypdVo xjgypdVo) {
        return localSqlSessionTemplate.selectList("SlrkpMapper.querySlrPxksLs",xjgypdVo);
    }
}
